#ifndef CWAVE_H
#define CWAVE_H

#include "CEntity.h"
//#include "CSmartEnemy.h"
#include "CEnemy.h"

class CPlayer;
//this class will do everything that a wave of enemies will do
//it should hold all the logic for enemy waves, raw data like timing, position, enemy types can be a part of level data
// and loaded in

//Enemy array mainly in CGameApp but can also be found in CHomingWeapon.cpp(203) and main(80)

//mystery of the maurading octupus pot
class CWave
{
public:
	CWave();
	CWave( int enemycount );
	virtual ~CWave();

	void Render();
	virtual bool Update();	//returns false if there isn't any enemies to update

	virtual void Initialize();
	void Collision( CPlayer* player );
	CEnemy* FindTarget();

	void SetGame( CGameApp* game )			{ pParent = game; }

	CGameApp* GetGame()						{ return pParent; }
	//load texture
	// attach weapon to specific enemy in array
	// enemies firing bullets
	// set face angle of all enemies
	// set target for the weapon//for homing missiles line 203

	CEnemy**	Enemy;
	int			NumEnemies;
	int			EnemiesRemaining;
	CGameApp*	pParent;
	//texture

};

#endif